iT邦幫忙

0

Angular good practice-顯示Recipe Detail、處理Shopping-List

WM 2020-04-18 16:01:04715 瀏覽
  • 分享至 

  • xImage
  •  

上一篇完成recipe-list的顯示後,接下來要針對右半部recipe細節的顯示。
https://ithelp.ithome.com.tw/upload/images/20200418/20112573xbW5WkUqzR.png

這個部分,會有dropdown-list的顯示,目前尚未完善,之後會再回頭補足功能。

recipe-detail.component.html

<div class="row">
  <div class="col-12">
    <h1>Recipe Name</h1>
  </div>
</div>
<div class="row">
  <div class="col-12">
    <div class="dropdown">
      <button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown"
        aria-haspopup="true" aria-expanded="false">
        Manage Recipe
      </button>
      <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
        <a class="dropdown-item" href="#">To Shopping List</a>
        <a class="dropdown-item" href="#">Edit Recipe</a>
        <a class="dropdown-item" href="#">Delete Recipe</a>
      </div>
    </div>
  </div>
</div>
<div class="row">
  <div class="col-12">
    Description
  </div>
</div>
<div class="row">
  <div class="col-12">
    Ingredients
  </div>
</div>

顯示:
https://ithelp.ithome.com.tw/upload/images/20200418/201125734lhJAbO7ZJ.png

shopping-list
https://ithelp.ithome.com.tw/upload/images/20200418/20112573IuBpsUI0rt.png
shopping-list-compinent.html

<div class="row">
  <div class="col-10">
    <app-shopping-edit></app-shopping-edit>
    <hr>
    <div class="list-group">
      <a class="list-group-item list-group-item-action" style="cursor: pointer;">123</a>
      <a class="list-group-item list-group-item-action" style="cursor: pointer;">123</a>
      <a class="list-group-item list-group-item-action" style="cursor: pointer;">123</a>
    </div>
  </div>
</div>

顯示:
https://ithelp.ithome.com.tw/upload/images/20200418/20112573qdSOvtSNrl.png


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言